#include <stdlib.h>
#include <stdio.h>
#include "redirect.h"

int main (int argc, char *argv[])
{
    char *args1[] = { "ls", "-l", 0 };
    char *args2[] = { "wc", 0 };
    
    printf("Executing \"ls -l\" via redirect_stdoutcmd output to ls.txt...\n");
    redirect_stdoutcmd(args1[0], args1, "ls.txt");

    printf("Executing wordCount method on ls.txt with redirect_stdincmd:\n");
    redirect_stdincmd(args2[0], args2, "ls.txt");

    return 0;
}